﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Domain.NetworkService;
using Domain.Entities;
using Domain.NetworkRemoteDevice;

namespace Web.Models
{
    public class DeviceTestsInfo
    {
        public string DeviceName { get; set; }
        public List<NetworkTestResult> testResults
        {
            get
            {
                if (DeviceName != null)
                {
                    return RemoteDeviceManager.GetLastResultOfAllTestsOfRemoteDevice(DeviceName); 
                }
                return null;
            }
        }
    }
}